<?php

use Illuminate\Support\Facades\Route;


Route::group(['namespace' => 'Api'], function () {
    Route::group(['prefix' => 'common'], function () {
        Route::post('login', 'CommonController@login');
        Route::post('register', 'CommonController@register');
    });
    Route::group(['prefix' => 'file'], function () {
        Route::post('uploadImage', 'FileController@uploadImage');
    });
    Route::group(['namespace' => 'System', 'prefix' => 'system'], function () {
        Route::get('code', 'CodeController@index');
    });

    Route::group(['namespace' => 'Archives', 'prefix' => 'archives'], function () {
        Route::get('about', 'AboutController@index');
        /**
         * 主播
         */
        Route::group(['prefix' => 'teacher'], function () {
            Route::get('pager', 'TeacherController@pager');
            Route::get('detail', 'TeacherController@detail');
        });

        /**
         * 主播
         */
        Route::group(['prefix' => 'teacher-case'], function () {
            Route::get('pager', 'TeacherCaseController@pager');
            Route::get('detail', 'TeacherCaseController@detail');
        });


        /**
         * 主播
         */
        Route::group(['prefix' => 'product'], function () {
            Route::get('pager', 'ProductController@pager');
            Route::get('detail', 'ProductController@detail');
        });
        /**
         * 广告列表
         */
        Route::group(['prefix' => 'A3D92DD3D8A24706A6D7A222'], function () {
            Route::get('list', 'AdvertisementController@lis');
        });
        
    });

});
